import request from '@/utils/request'

// 查询消费者缓存区历史表列表
export function listHistory(query) {
  return request({
    url: '/system_setting/consumerBuffer/history/list',
    method: 'get',
    params: query,
  })
}

// 查询消费者缓存区历史表详细
export function getHistory(consumerBufferId) {
  return request({
    url: '/system_setting/consumerBuffer/history/' + consumerBufferId,
    method: 'get',
  })
}

// 新增消费者缓存区历史表
export function addHistory(data) {
  return request({
    url: '/system_setting/consumerBuffer/history',
    method: 'post',
    data: data,
  })
}

// 修改消费者缓存区历史表
export function updateHistory(data) {
  return request({
    url: '/system_setting/consumerBuffer/history',
    method: 'put',
    data: data,
  })
}

// 删除消费者缓存区历史表
export function delHistory(consumerBufferId) {
  return request({
    url: '/system_setting/consumerBuffer/history/' + consumerBufferId,
    method: 'delete',
  })
}
